﻿using System;

namespace ExFlash.Records
{
    public enum AdpcmCodeSizes : byte
    {
        _2Bits = 0,
        _3Bits = 0,
        _4Bits = 0,
        _5Bits = 0
    }
    
    public class ADPCMSoundData : SoundData
    {
        public AdpcmCodeSizes AdpcmCodeSize
        {
            get;
            private set;
        }

        public ADPCMSoundData(int len)
            : base(len)
        {

        }
        
        #region ISwfSerializable Members

        public override void SwfDeserialize(BinaryBitReader reader)
        {
            AdpcmCodeSize = (AdpcmCodeSizes)reader.ReadUInt32(2);
            reader.AlignBits();

            base.SwfDeserialize(reader);
        }

        public override void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
